<template>
  <section>
    <div class="option">
      <div v-if="option.type === 'img'">
        <img :src="option.text" width="50px" height="50px" style="border: 1px solid #eee">
        <div>{{option.placeholder}}</div>
      </div>
      <div v-else>{{option.text}}</div>
    </div>
  </section>
</template>

<script>
  export default {
    name: "viewOptions",
    props:['option']
  }
</script>

<style scoped>
.option{
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 0px solid red;
}
</style>
